package com.vpen.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @version: 1.0
 * @author: Vpen
 * @date: 2021/12/5 14:19
 * @content:
 */
@Data
@Accessors(chain = true)
public class UserData implements Serializable {
    private final static long serialVersionUID = 4894578545678959L;
    private Integer id;
    private String name;
    private Long number;
    private  Integer count;
    private  String appId;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime time;
}
